﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/admin/Views/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Lbb.URating.DL.U_ClickRating>" %>

<%@ Import Namespace="Lbb.URating.Localization" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:Model.RatingID==Guid.Empty?OperatorRes.Add:OperatorRes.Edit %><%:U_ClickRatingRes.ClassName %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        var controllerName = "U_ClickRating";
        var edit = Model.ClickID == Guid.Empty ? OperatorRes.Add : OperatorRes.Edit;
        using (Html.BeginForm("Edit", controllerName))
        { 
    %>
    <div class="gvBanner">
        <span class="gvBannerThemes"><img src="<%:Url.Content("~/images/decoy-icon-36px.png") %>" align="absmiddle" style="border-width:0px;"></span>
        <%:edit%><%:U_ClickRatingRes.ClassName %>
    </div>
    <div class="contentTemplate" style="background-color: #CCC;">
        <%: Html.ValidationSummary(false, "")%>
        <div class="formLabelsText">
            <em class="red">*</em> <%:U_ClickRatingRes.ClickID %>:
            <br />
            <%:Html.Action("SelectList", "U_Click", new { area="",key="ClickID",value=Model.ClickID,hasEmpty=true,emptyTitle=OperatorRes.PleaseSelect})%>
            <%:Html.ValidationMessageFor(m => m.ClickID)%>
        </div>
        <div class="formLabelsText">
            <em class="red">*</em> <%:U_ClickRatingRes.ObjectID %>:
            <br />
            <%:Html.EditorFor(m=>m.ObjectID) %>
            <%:Html.ValidationMessageFor(m => m.ObjectID)%>
        </div>
        <div class="formLabelsText">
            <em class="red">*</em> <%:U_ClickRatingRes.ClickCount %>:
            <br />
            <%:Html.EditorFor(m => m.ClickCount)%>
            <%:Html.ValidationMessageFor(m => m.ClickCount)%>
        </div>
        <div class="formLabelsText">
            <em class="red">*</em> <%:U_ClickRatingRes.AverageRating %>:
            <br />
            <%:Html.EditorFor(m => m.AverageRating)%>
            <%:Html.ValidationMessageFor(m => m.AverageRating)%>
        </div>
        <div class="formLabelsText">
            <em class="red">*</em> <%:U_ClickRatingRes.AverageRating %>:
            <br />
            <%:Html.EditorFor(m => m.AverageRating)%>
            <%:Html.ValidationMessageFor(m => m.AverageRating)%>
        </div>
        <div class="formSectionEnd">
        </div>
        <div class="formButton">
            <%:Html.HiddenFor(m => m.RatingID)%>
            <input type="submit" value="<%:OperatorRes.Submit %>" name="detailsubmit" id="submit1" class="inputButton">
            <%:Html.ActionLink(OperatorRes.GoBack, "RedirectToIndex", null, new { @class="inputButton"})%>
        </div>
    </div>
    <%
        }
    %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
